package com.lyy.blog.service;

import com.lyy.blog.po.blog;
import com.lyy.blog.vo.BlogQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface blogservice {

        blog  getblog(Long id);

        Page<blog> listblog(Pageable pageable, BlogQuery blog);

        blog savablog(blog blog);

        //先根据id查出来，在把修改的blog对象传过去

        blog updateblog(Long id,blog blog);

        void deleteblog(Long id);

        Page<blog> listblog(Pageable pageable);

        List<blog>  listrecommendtop(Integer size);

        Page<blog> listblog(String query,Pageable pageable);

        blog getAndConvert(Long id);



        Page<blog> listblog(Long tagId,Pageable pageable);

        //返回map集合，前面是年份，后面是年份的博客
        Map<String,List<blog>>  archiveBlog();

        Long countBlog();

}
